<?php $this->load->view('common/dpc-head');?>
<?php $this->load->view('common/dpc-header');?>
<?php $this->load->view('common/dpc-404');?>
<?php $this->load->view('common/dpc-top-search');?>
<div role="main">
	<div class="stripe-regular items-carousel-wrap">
		<div class="row">
			<div class="column">
				<h2>New Discount Codes</h2>
			</div>
		</div>
		<div class="row collapse">
			<div class="column">
				<div class="items-carousel flexslider">
					<ul class="rr slides">
						<?php foreach($allLatestCoupons as $temp){?>
						<li>
							<div class="wrapper-3 item-thumb">
								<div class="top">
									<figure>
										<img src="
										<?php if(isset($temp['coupon_image']) && $temp['coupon_image']!=''){ echo $temp['coupon_image'];}
										else { echo $temp['store_image'];}?>
										" alt="<?php echo $temp['store_name'];?> promo code" style="box-shadow:0px 0px 2px #A049BB;border-radius:3px;">
									</figure>
									<h2 class="alt">
										<a href="/<?php echo $temp['store_url'];?>-promo-codes"><?php echo substr($temp['coupon_name'], 0, 32);?> ..
										<br /><span style="font-weight:normal;color:#0099FF;font-size:14px;"><?php echo $temp['store_name'];?></span></a>
									</h2>
								</div>
								<div class="bottom">
									<p class="value secondary">&#8377;&nbsp;&nbsp;&nbsp;<?php echo $temp['coupon_off_by'];?> OFF</p>
									<h6><?php echo $temp['diff'];?>days left</h6>
									<a href="/<?php echo $temp['store_url'];?>-promo-codes" class="input button red secondary">Get Coupon</a>
								</div>
							</div>
						</li>
                        <?php } ?>
					</ul>
				</div>
			</div>
		</div>
	</div>

</div>
<?php $this->load->view('common/dpc-footer');?>